$(function(){
	
	moment.lang("zh-cn");//日期格式化
	/**  
    	js由毫秒数得到年月日  
    	使用： (new Date(data[i].creationTime)).Format("yyyy-MM-dd hh:mm:ss.S")  
    */  
	 Date.prototype.Format = function (fmt) { //author: tony  
         var o = {  
             "M+": this.getMonth() + 1, //月份  
             "d+": this.getDate(), //日  
             "h+": this.getHours(), //小时  
             "m+": this.getMinutes(), //分  
             "s+": this.getSeconds(), //秒  
             "q+": Math.floor((this.getMonth() + 3) / 3), //季度  
             "S": this.getMilliseconds() //毫秒  
         };  
         if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));  
         for (var k in o)  
             if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));  
         return fmt;  
     };  
	
     /**
      * 点击其他地方隐藏该层
      * @param parentObj要隐藏的层的父级元素 eg.".xxx/#xxx"
      * @param selfObj 要隐藏的层 eg.".xxx/#xxx"
      * */
	var clickBody={
		 hide:function(parentObj,selfObj){
			 console.log("====---");
			 $("body").bind("click",function(evt){ 
					if($(evt.target).parents(parentClass).length==0){ 
						$(selfObj).hide(); 
					} 
				});
		 }
	}
	
	/**窗口*/
	var gnwindow = {
		//loading的位置 fixed
		gnposition: function(dom){
			var winw = $(window).width();
			var winh = $(window).height();
			var lw = dom.width();
			var lh = dom.height();
			var left = (winw - lw)/2;
			var top = (winh - lh)/2;
			dom.css({left:left,top:top});
			
		},

		//随着窗口大小的改变，重新计算可视窗口的宽高
		gnResize: function(dom){
			$(window).resize(function(){
				gnwindow.gnposition(dom);
			});
		}
	}
	
	/***
	 * 退出
	 * */
	$(".exit").on("click",function(){
		$.gnwindows.windowTempl();
		gnwindow.gnposition($(".window-gn"));
		gnwindow.gnResize($(".window-gn"));

		/*取消退出操作*/
		$(".bg_shadow,.cancel-exit").on("click",function(){
			$(".window-gn").removeClass("bounceInUp").addClass("bounceOutUp");
			$(".gnshodow").remove();
		});
		/*确认退出操作*/
		$(".confirm-exit").on("click",function(){
			window.location.href="/WX-PLATFORM/user/logout";
		});
	});
	
	$.gnwindows = {
		/*自定义窗体*/
		windowTempl:function(){
			$("body").append(
				"<div class='window-gn animated bounceInUp'>"+
					"<div class='w-exit'><div style='text-align: center;'><img width='100' height='100' src='/WX-PLATFORM/resources/images/logo5.jpg'/></div>"+
					  "<p class='gn-exit-title' style='padding: 5px 100px;text-align:center;color:#333;'>" +
					  "<svg style='width:40px;height:50px;' class='icon chuizhicenter' aria-hidden='true'>"+
					  "									  <use xlink:href='#icon-signout'></use>"+
					  "									</svg>"+
					  "确定退出么？</p>"+
					  "<div class='w-inner-exit' style='padding: 35px 10px 5px;text-align: center;'>"+
						  "<a style='margin-left:20px;float:left;background:#E9397B;' class='confirm-exit' href='javascript:;'>确定</a>"+
						  "<a style='margin-right:20px;float:right;background: #C5C5C5;' class='cancel-exit' href='javascript:;'>取消</a>"+
					  "</div>"+
					"</div>"+
					"<div style='clear: both;'></div>"+
				"</div>"+
				"<div class='gnshodow bg_shadow'></div>"
			);
		},
		//通告窗口
		gnnotice:function(b){
			//示范一个公告层
		     if(b){
		    	 layer.open({
			        type: 1
			        ,title: false //不显示标题栏
			        ,closeBtn: false
			        ,area: '300px;'
			        ,shade: 0.6
			        ,id: 'LAY_layuipro' //设定一个id，防止重复弹出
			        ,btn: ['火速围观', '残忍拒绝']
			        ,moveType: 0 //拖拽模式，0或者1
			        ,content: '<div style="padding: 50px; line-height: 22px; background-color: #393D49; color: #fff; font-weight: 300;">快去看看<br>layer ≠ layui<br><br>layer只是作为Layui的一个弹层模块，由于其用户基数较大，所以常常会有人以为layui是layerui<br><br>layer虽然已被 Layui 收编为内置的弹层模块，但仍然会作为一个独立组件全力维护、升级。<br><br>我们此后的征途是星辰大海 ^_^</div>'
			        ,success: function(layero){
			          var btn = layero.find('.layui-layer-btn');
			          btn.css('text-align', 'center');
			          btn.find('.layui-layer-btn0').attr({
			            href: 'http://www.layui.com/'
			            ,target: '_blank'
			          });
			        }
			      });
		    	 }else{
		    		 console.log("关闭通告");
		    	 }
		},
		//登录窗口
		gnLoginWindow:function(){
			//示范一个公告层
		      layer.open({
		        type: 1
		        ,title: false //不显示标题栏
		        ,closeBtn: true
		        ,area: '400px;'
		        ,shade: 0.8
		        ,id: 'LAY_layuipro' //设定一个id，防止重复弹出
		        ,btn: ['登录']
		        ,moveType: 1 //拖拽模式，0或者1
		        ,content: '<div style="padding: 0 40px 10px; line-height: 30px; background-color: #fff; color: #333; font-weight: 300;">'+
		        	'<div style="text-align: center;"><img width="100" height="100" src="/WX-PLATFORM/resources/images/logo5.jpg"/></div>'+
		        	'<p id="l-error-msg" style="font-size:14px;display:none;color:red;"></p>'+
		        	'<input class="username" style="margin-top: 10px;width:100%;border:1px solid #ddd;padding:5px;" placeholder="请输入手机号、邮箱"/><br>'+
		        	'<input class="password" type="password" style="margin-top:10px;width:100%;border:1px solid #ddd;padding:5px;" placeholder="请输入密码"/><br>'+
		        	'<div><label for="auto-signed"><input id="auto-signed" style="margin-right:10px;vertical-align:-1px;" checked type="checkbox"/>'+
		        	'<span style="font-size:14px;color:#AFAFAF;">记住密码</span></label>'+
		        	'<a href="/WX-PLATFORM/user/signup.htm" style="font-size:14px;float: right;color:#179E52;">注册</a>'+
		        	'</div>'+
		        	'</div>'
		        ,success: function(layero){
		        	//location.reload();return;
		          var btn = layero.find('.layui-layer-btn0');
		          btn.css({'background':'red','width':'80%','padding':'10px 0','border':'none','text-align':'center'});
		          /*btn.find('.layui-layer-btn0').attr({
		            href: '../user/list.htm'
		            ,target: '_self'//_blank
		          });*/
		        },yes: function(index, layero){
		        	var btn = layero.find('.layui-layer-btn0');
		        	var uname=$.trim($(".username").val());
		        	var pwd=$.trim($(".password").val());
		        	if(uname == '' || pwd == ''){$("#l-error-msg").html("用户名和密码不能为空").css({"display":"block"});return;}
		        	
		        	btn.html("登录中...")
					.attr("disabled",true)
					.css({"background-color":" #F5B5CD"})
					.removeAttr('href');
//		        	return;
		        	var url="/WX-PLATFORM/rest/logon";
		        	var data={"username":uname,"password":pwd};
		        	console.log(data);
		        	$.ajax({
		        		url:url,
		        		method:'POST',
		        		data:data,
		        		success:function(r){
		        			if(r == 'true'){
		        				location.reload();return;
		        			}else{
		        				btn.html("登录")
		    					.attr("disabled",false)
		    					.css({"background-color":"red"})
		    					.attr('href');
		        				$("#l-error-msg").html("用户名或密码错误").css({"display":"block"});
		        				return;
		        			}
		        		},error:function(r){
		        			layer.msg("系统出错，请耐心等候",{time:2000});
	        				return;
		        		}
		        	});
		        }
		      });
		},
		//图文显示窗口b-该窗口是否显示，c-点击数量
		gnImgCntWindow: function(b,c){
			c=110;
			//示范一个公告层
		     if(b){
		    	 layer.open({
			        type: 1
			        ,title: false //不显示标题栏
			        ,closeBtn: false
			        ,area: '400px;'
			        ,shade: 0.6
			        ,id: 'LAY_layuipro' //设定一个id，防止重复弹出
			        ,btn: ['快来膜拜'+'-('+c+')人']
			        ,moveType: 0 //拖拽模式，0或者1
			        ,content: '<div style="line-height: 22px; background-color: #393D49; color: #fff; font-weight: 300;">'+
			        	'<img src="http://y2.ifengimg.com/cmpp/2014/03/10/04/99a59191-8550-4e77-929d-3c31e25c2192.jpg"/></div>'
			        ,success: function(layero){//layer.closeAll();
			        	var bg=layero.find('.layui-layer-page');
			        	bg.css({"top":"0"});
			        }
			      });
		    	 }else{
		    		 console.log("关闭通告");
		    	 }
		}
		
		
	}

	$.gnEmoji = {
		showEmoji:function(){
			$(".t_face_con").append(
						"<ul id='q_ul' class='animated swing'>"+
							"<li><img src='../resources/emoji/images/face/zz2_thumb.gif' title='[织]'></li>"+
							"<li><img src='../resources/emoji/images/face/horse2_thumb.gif' title='[神马]'></li>"+
							"<li><img src='../resources/emoji/images/face/fuyun_thumb.gif' title='[浮云]'></li>"+
							"<li><img src='../resources/emoji/images/face/geili_thumb.gif' title='[给力]'></li>"+
							"<li><img src='../resources/emoji/images/face/wg_thumb.gif' title='[围观]'></li>"+
							"<li><img src='../resources/emoji/images/face/vw_thumb.gif' title='[威武]'></li>"+
							"<li><img src='../resources/emoji/images/face/panda_thumb.gif' title='[熊猫]'></li>"+
							"<li><img src='../resources/emoji/images/face/rabbit_thumb.gif' title='[兔子]'></li>"+
							"<li><img src='../resources/emoji/images/face/otm_thumb.gif' title='[奥特曼]'></li>"+
							"<li><img src='../resources/emoji/images/face/j_thumb.gif' title='[囧]'></li>"+
							"<li><img src='../resources/emoji/images/face/hufen_thumb.gif' title='[互粉]'></li>"+
							"<li><img src='../resources/emoji/images/face/liwu_thumb.gif' title='[礼物]'></li>"+
							"<li><img src='../resources/emoji/images/face/smilea_thumb.gif' title='[呵呵]'></li>"+
							"<li><img src='../resources/emoji/images/face/tootha_thumb.gif' title='[嘻嘻]'></li>"+
							"<li><img src='../resources/emoji/images/face/laugh.gif' title='[哈哈]'></li>"+
							"<li><img src='../resources/emoji/images/face/tza_thumb.gif' title='[可爱]'></li>"+
							"<li><img src='../resources/emoji/images/face/kl_thumb.gif' title='[可怜]'></li>"+
							"<li><img src='../resources/emoji/images/face/kbsa_thumb.gif' title='[挖鼻屎]'></li>"+
							"<li><img src='../resources/emoji/images/face/cj_thumb.gif' title='[吃惊]'></li>"+
							"<li><img src='../resources/emoji/images/face/shamea_thumb.gif' title='[害羞]'></li>"+
							"<li><img src='../resources/emoji/images/face/zy_thumb.gif' title='[挤眼]'></li>"+
							"<li><img src='../resources/emoji/images/face/bz_thumb.gif' title='[闭嘴]'></li>"+
							"<li><img src='../resources/emoji/images/face/bs2_thumb.gif' title='[鄙视]'></li>"+
							"<li><img src='../resources/emoji/images/face/lovea_thumb.gif' title='[爱你]'></li>"+
							"<li><img src='../resources/emoji/images/face/sada_thumb.gif' title='[泪]'></li>"+
							"<li><img src='../resources/emoji/images/face/heia_thumb.gif' title='[偷笑]'></li>"+
							"<li><img src='../resources/emoji/images/face/qq_thumb.gif' title='[亲亲]'></li>"+
							"<li><img src='../resources/emoji/images/face/sb_thumb.gif' title='[生病]'></li>"+
							"<li><img src='../resources/emoji/images/face/mb_thumb.gif' title='[太开心]'></li>"+
							"<li><img src='../resources/emoji/images/face/ldln_thumb.gif' title='[懒得理你]'></li>"+
							"<li><img src='../resources/emoji/images/face/yhh_thumb.gif' title='[右哼哼]'></li>"+
							"<li><img src='../resources/emoji/images/face/zhh_thumb.gif' title='[左哼哼]'></li>"+
							"<li><img src='../resources/emoji/images/face/x_thumb.gif' title='[嘘]'></li>"+
							"<li><img src='../resources/emoji/images/face/cry.gif' title='[衰]'></li>"+
							"<li><img src='../resources/emoji/images/face/wq_thumb.gif' title='[委屈]'></li>"+
							"<li><img src='../resources/emoji/images/face/t_thumb.gif' title='[吐]'></li>"+
							"<li><img src='../resources/emoji/images/face/k_thumb.gif' title='[打哈气]'></li>"+
							"<li><img src='../resources/emoji/images/face/bba_thumb.gif' title='[抱抱]'></li>"+
							"<li><img src='../resources/emoji/images/face/angrya_thumb.gif' title='[怒]'></li>"+
							"<li><img src='../resources/emoji/images/face/yw_thumb.gif' title='[疑问]'></li>"+
							"<li><img src='../resources/emoji/images/face/cza_thumb.gif' title='[馋嘴]'></li>"+
							"<li><img src='../resources/emoji/images/face/88_thumb.gif' title='[拜拜]'></li>"+
							"<li><img src='../resources/emoji/images/face/sk_thumb.gif' title='[思考]'></li>"+
							"<li><img src='../resources/emoji/images/face/sweata_thumb.gif' title='[汗]'></li>"+
							"<li><img src='../resources/emoji/images/face/sleepya_thumb.gif' title='[困]'></li>"+
							"<li><img src='../resources/emoji/images/face/sleepa_thumb.gif' title='[睡觉]'></li>"+
							"<li><img src='../resources/emoji/images/face/money_thumb.gif' title='[钱]'></li>"+
							"<li><img src='../resources/emoji/images/face/sw_thumb.gif' title='[失望]'></li>"+
							"<li><img src='../resources/emoji/images/face/cool_thumb.gif' title='[酷]'></li>"+
							"<li><img src='../resources/emoji/images/face/hsa_thumb.gif' title='[花心]'></li>"+
							"<li><img src='../resources/emoji/images/face/hatea_thumb.gif' title='[哼]'></li>"+
							"<li><img src='../resources/emoji/images/face/gza_thumb.gif' title='[鼓掌]'></li>"+
							"<li><img src='../resources/emoji/images/face/dizzya_thumb.gif' title='[晕]'></li>"+
							"<li><img src='../resources/emoji/images/face/bs_thumb.gif' title='[悲伤]'></li>"+
							"<li><img src='../resources/emoji/images/face/crazya_thumb.gif' title='[抓狂]'></li>"+
							"<li><img src='../resources/emoji/images/face/h_thumb.gif' title='[黑线]'></li>"+
							"<li><img src='../resources/emoji/images/face/yx_thumb.gif' title='[阴险]'></li>"+
							"<li><img src='../resources/emoji/images/face/nm_thumb.gif' title='[怒骂]'></li>"+
							"<li><img src='../resources/emoji/images/face/hearta_thumb.gif' title='[心]'></li>"+
							"<li><img src='../resources/emoji/images/face/unheart.gif' title='[伤心]'></li>"+
							"<li><img src='../resources/emoji/images/face/pig.gif' title='[猪头]'></li>"+
							"<li><img src='../resources/emoji/images/face/ok_thumb.gif' title='[ok]'></li>"+
							"<li><img src='../resources/emoji/images/face/ye_thumb.gif' title='[耶]'></li>"+
							"<li><img src='../resources/emoji/images/face/good_thumb.gif' title='[good]'></li>"+
							"<li><img src='../resources/emoji/images/face/no_thumb.gif' title='[不要]'></li>"+
							"<li><img src='../resources/emoji/images/face/z2_thumb.gif' title='[赞]'></li>"+
							"<li><img src='../resources/emoji/images/face/come_thumb.gif' title='[来]'></li>"+
							"<li><img src='../resources/emoji/images/face/sad_thumb.gif' title='[弱]'></li>"+
							"<li><img src='../resources/emoji/images/face/lazu_thumb.gif' title='[蜡烛]'></li>"+
							"<li><img src='../resources/emoji/images/face/clock_thumb.gif' title='[钟]'></li>"+
							"<li><img src='../resources/emoji/images/face/cake.gif' title='[蛋糕]'></li>"+
							"<li><img src='../resources/emoji/images/face/m_thumb.gif' title='[话筒]'></li>"+
							"<li><img src='../resources/emoji/images/face/weijin_thumb.gif' title='[围脖]'></li>"+
							"<li><img src='../resources/emoji/images/face/lxhzhuanfa_thumb.gif' title='[转发]'></li>"+
							"<li><img src='../resources/emoji/images/face/lxhluguo_thumb.gif' title='[路过这儿]'></li>"+
							"<li><img src='../resources/emoji/images/face/bofubianlian_thumb.gif' title='[bofu变脸]'></li>"+
							"<li><img src='../resources/emoji/images/face/gbzkun_thumb.gif' title='[gbz困]'></li>"+
							"<li><img src='../resources/emoji/images/face/boboshengmenqi_thumb.gif' title='[生闷气]'></li>"+
							"<li><img src='../resources/emoji/images/face/chn_buyaoya_thumb.gif' title='[不要啊]'></li>"+
							"<li><img src='../resources/emoji/images/face/daxiongleibenxiong_thumb.gif' title='[dx泪奔]'></li>"+
							"<li><img src='../resources/emoji/images/face/cat_yunqizhong_thumb.gif' title='[运气中]'></li>"+
							"<li><img src='../resources/emoji/images/face/youqian_thumb.gif' title='[有钱]'></li>"+
							"<li><img src='../resources/emoji/images/face/cf_thumb.gif' title='[冲锋]'></li>"+
							"<li><img src='../resources/emoji/images/face/camera_thumb.gif' title='[照相机]'></li>"+

							<!--QQ emoji-->
							"<li><img src='../resources/emoji/images/qq/1.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/2.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/3.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/4.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/5.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/6.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/7.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/8.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/9.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/10.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/11.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/12.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/13.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/14.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/15.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/16.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/17.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/18.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/19.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/20.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/21.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/22.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/23.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/24.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/25.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/26.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/27.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/28.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/29.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/30.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/31.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/32.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/33.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/34.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/35.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/36.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/37.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/38.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/39.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/40.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/41.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/42.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/43.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/44.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/45.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/46.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/47.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/48.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/49.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/50.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/51.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/52.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/53.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/54.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/55.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/56.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/57.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/58.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/59.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/60.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/61.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/62.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/63.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/64.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/65.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/66.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/67.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/68.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/69.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/70.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/71.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/72.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/73.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/74.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/75.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/76.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/77.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/78.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/79.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/80.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/81.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/82.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/83.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/84.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/85.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/86.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/87.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/88.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/89.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/90.gif'></li>"+
							"<li><img src='../resources/emoji/images/qq/91.gif'></li>"+
						"</ul>"		
						
			);

			// 选中QQ表情添加到文本框
		$(".t_face_con #q_ul").find("li").click(function(){
			var img = $(this).find("img").clone();
			$(".write-message").append(img);
			$(".t_face_con").addClass("animated bounceOutLeft");
		});
		}
	}

	

});